package com.ynet.hmds28.user.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ynet.hmds28.user.model.Serviceconsume;
import com.ynet.hmds28.user.model.ServiceconsumeQuery;

public interface ServiceconsumeDao {
	
	 //开启GTS事务
    public void enableTXC();
	
    int countByExample(ServiceconsumeQuery example);

    int deleteByExample(ServiceconsumeQuery example);

    int deleteByPrimaryKey(String serviceconsumeid);

    int insert(Serviceconsume record);

    int insertSelective(Serviceconsume record);

    List<Serviceconsume> selectByExample(ServiceconsumeQuery example);

    Serviceconsume selectByPrimaryKey(String serviceconsumeid);

    int updateByExampleSelective(@Param("record") Serviceconsume record, @Param("example") ServiceconsumeQuery example);

    int updateByExample(@Param("record") Serviceconsume record, @Param("example") ServiceconsumeQuery example);

    int updateByPrimaryKeySelective(Serviceconsume record);

    int updateByPrimaryKey(Serviceconsume record);
    
    void statisticalBill(@Param("serviceproviceId") String serviceproviceId,@Param("merchanNo")String merchanNo);
}